package com.jiangnan.repository

import com.jiangnan.api.client.BookApiClient
import java.math.BigDecimal

class PaymentRepository {

  suspend fun recharge(userId: Long, amount: BigDecimal) =
    BookApiClient.paymentApiService.recharge(userId, amount)

  suspend fun payOverdue(userId: Long, amount: BigDecimal) =
    BookApiClient.paymentApiService.payOverdue(userId, amount)

  suspend fun getLogs(userId: Long) =
    BookApiClient.paymentApiService.getLogs(userId)
}